<?php
if(empty($row)){
	$asppass=substr(md5($userpass),8,16);
	$extrow=$db->row_select_one("users","username='{$username}' and userpass='{$asppass}'");
	if(!empty($extrow)){
		$row=$extrow;	//返回user的数据，继续登录的操作
		$new_row["userpass"]=$userpass_encrypt;
		$db->row_update("users",$new_row,"id={$extrow['id']}");	//更新用户新密码
	}
}
?>